package com.totoro.mapper;

import com.totoro.pojo.Admin;
import com.totoro.pojo.Seller;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author TOTORO
 * @date 2021/7/8 1:27
 */
@Repository
public interface AdminMapper {

    Integer addAdmin(Admin admin);

    Admin findAdminByPasswordAndPhone(@Param("account") String account, @Param("phone") String phone);

    Integer updateUserApplySeller(@Param("uid") int uid, @Param("status") int status);

    Integer updateUserIsSeller(@Param("uid") int uid);

    Integer addSeller(Seller seller);

    Integer addShop(@Param("shopName") String shopName, @Param("slid") int slid);

}
